package com.github_dididipapa.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github_dididipapa.mall.product.dto.BrandRelationDto;
import com.github_dididipapa.mall.product.dto.CategoryDto;
import com.github_dididipapa.mall.product.entity.CategoryBrandRelationEntity;

import java.util.List;

/**
 * 品牌分类关联
 *
 * @author dididipapa
 * @email not_found@404.com
 * @date 2025-04-26 18:14:11
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {


    void save(Long brandId, Long catelogId,  String brandName, String catelogName);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String name);

    void updateCategory(Long catId, String name);

    List<BrandRelationDto> getBrandByCatId(Long catId);

    List<CategoryBrandRelationEntity> getCategoryByBrandId(Long brandId);
}

